AngularJs coding for fun