Switching to angularjs 1.2