Improve node packaging, add .jshintrc

I took the liberty to improve your JS a little.

A few things to note:

- a variable without `var` will create a global
- JS and node specifically uses camel-cased variable names