This come from studying PhoneGap