Added jshint task.

Also fixed jshint warnings/errors