Added jshint task
Minor fixes based on JSHint