Detection of PhoneGap changed