defering script insert to ensure callbacks are registered.