Switch to angularjs