From http://stackoverflow.com/questions/68485/how-to-show-loading-spinner-in-jquery