some JS tweaks
Merge branch 'master' of github.com:piwik/piwik-ui-tests