syntax fix in ajax.js