enable jshint, reformat code
Merge pull request #1 from Srirangan/jshint

JSHint