add jshint checking, fix some jshint errs
Merge pull request #9 from ryanjadhav/master

add jshint checking, fix some jshint errs