refs piwik/piwik#5983 fixed some Jshint warnings