Update ajax.js

Deleting functions isArray, inArray. Code optimisation.