Linting

here's a first crack at linting using [jshint](http://www.jshint.com/docs/) + grunt. 

`.jshintrc` captures known globals as well as exceptions from the default rules. of these, the only one i'd look to clean up would be `quotmark` - probably should be `"single"`?