fixing script call to angularjs