ajax.js bug fix