JSHint settings

Fix for #656 

Dont merge this yet: Instead we should discuss which other settings should be changed. I'm for setting `curly` to `true` (Force curly braces for `if` statements)

Also what is the `module` global for?