Fixed JSHint issues in plugins
Merge pull request #3112 from LaurentGoderre/v4.0-jshint

Fixed JSHint issues in plugins
Form validation: Minor code cleanup
Merge pull request #3110 from pjackson28/formvalidfix

Form validation: Minor code cleanup
Gruntfile fix - added jshinting as a baseline task for all build actions
* jshint was only available as through the test task in grunt. This was missed by some developers allowing for badly hinted code to leak into the repo.