update url in browser when using ajax