jshint fixes
Merge pull request #584 from guardian/dev-error-tracking

Jshint fixes