add jshint task; fix unit tests