add some jshint rules with fixes

* add missing semicolon
* don't use var out of scope
* add radix param to parseInt()
* don't create global for var
* define var before it is used