client js ajax.js changed to parse response when error as well