Code from CodeSchool`s AngularJS tutorial