Pulled pure from http://www.givp.org/blog/2010/07/13/building-mobile-app-with-titanium/