DRY libraries for Titanium Appcelerator Mobile apps