upgrade to angularjs 0.5