Fix ajax.js to call success on 2xx and 304