Fix default when Phonegap not loaded