fix ajax.js errors workings