Updated to Angularjs 1.2