refactor(all): refactor all code to match the AngularJS styleguide