Follow the projects jshint rules
attempt to duplicate the logic from jshint more closely

Fixes #74
Fixes #13