code linted with jshint

Tries to deal with #21