fixes #22 (jshint issues) (except for tests that will stay as is)