Use new jquery ajax callbacks; add ajax error handling