Use jshint not jslint for style checking
fix line endings and trailing whitespace
jshint cleanup
fix custom checks
Added JSDoc to an inner function.
Removed grunt-jslint as it is not longer being used.
Running check style script with travis ci