It looks like you got a compile error inside your script. You can use a linter ( like http://www.jslint.com/ ) to check what is wrong with your script.