moving to angularjs