Make sure script is inserted only once and all callbacks are executed