Shaping Up with AngularJS Sample Code