Use $('id') here instead, please.

Note, however, that I'm not convinced that we need a loading indicator here. That would be a question for UX before we land this code.