PhoneGap: First changes towards automatic device detection