It can be frustrating sometimes tracking down JS parse errors since the API scripts are being parsed through eval, making it impossible to return line numbers. &nbsp;One tip is to use jshint ( <a href="http://www.jshint.com/" rel="nofollow">http://www.jshint.com/</a>) to preparse your script. &nbsp;This will return more than errors, it will also return suggestions on ways to improve your code. &nbsp;Additionally, most editors have plugins that allow you to jshint right inside the app.