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
Merge pull request #2111 from mauk81/develop

add some jshint rules with fixes