Try to support Phonegap