jshintrc and cleanups
Merge pull request #8 from halkeye/jshint

Lintify'd the code