Update ajax.js

One line condition to reduce size of file.