Titanium Appcelerator REST example with modal popup and activity indicator