Add .jshintrc and make a bunch of fixes
Merge pull request #14 from siebrand/jshintrc

Add .jshintrc and make a bunch of fixes