update angularjs location