Add handler for ajax failure in update.js