fix one explicit global, remove unused variables and add missing semicolons to make jshint happy(er)
Merge pull request #171 from c9/jshint_cleanups

remove one explicit global and other smaller cleanups