fix jshint/jslint warnings
Merge pull request #2 from pirxpilot/lint

fix jshint/jslint warnings