Added ajax error handler to page.