[development] How can I tell from the returned value (i.e. drupal_add_js('shoppingCartInfo()', 'inline')) whether this javascript has been successful called so that I can stop the call to this javascript function the next time the hook is executed?