Fix jshint errors
Add jshint validation to tests