edited ajax.js