Update ajax.js

updated so that it fires the callback if the status is < 400