Added window.PhoneGap Check

Test if in Browser or not