Add jshintrc and lint file accordingly

Clean up formatting, standardize quotes and equality checks, added use
strict.

Fixes #28