Bulk of Code for phonegap.com App file testing