update url post javascript