upgraded to AngularJS 1.2.1