move from jquery to angularjs