update angularjs to work (not async)