Checking UI in PhoneGap