Rails 3.1 javascript with spinner and jquery global ajaxError handler