change from jquery to angularjs