Update jiant.js

error handler per ajax call, as optional ajax call parameter