Jshint and Minor Code Tidyup

Hey Zach,

I have added a JsHint file for code styling and stuff. I have also added a little bit of actual code which might be helpfull.

Let me know if you want me to help out.

If its helpfull to stay in contact, im usually on irc @ilikeprograms or email me tom@ilikeprograms.com

PS. This is my first pull request ever!!