Update toAjax.js