change to angularjs