Added grunt and jshint test.
Fixed issues. Thanks jshint.