Fixing piwik.js tests and JSLint after realizing refs #4225