updated ajax regexp
fixed update url