examples of Object-Oriented design in AngularJS and coffee-script