AngularJS code refactoring - added modules.