Adds jshint task
Fixed source due jshint issues