I copied this from the Ext app. I'd prefer to ditch jquery ajax methods in favor of angular ones, but since this doesn't need to participate in the digest/apply cycle, we should be good to leave as-is for now.