refs piwik/piwik#5983 a few updates based on johnpapa angularjs style guide