ADDED:phonegap related source code for initialization