Node conventions: node_modules in .gitignore, and JSHint

I used the open source tool [JSHint](http://jshint.com/) to look for errors, the results were quite minor. I also added `node_modules/` to `.gitignore` so that dependencies won't be accidentally checked into version control.