Might be worth just running jslint/jshint on the whole file. Won't comment on other lintable error i see