check jshint against es3; fix jshint errors
Merge pull request #2478 from guardian/es3-jshint

JSHint checks against ES3