Ensure that your script is watertight. If it's not on the page, it will never magically appear on the screen.