updated to angularjs 1.3