Refactored into modules to init AngularJS prototype.