Structure of PhoneGap App with Advertisement