Fixing @ahume jshint errors
Merge pull request #574 from guardian/detect-tweak

Fixing @ahume jshint errors