Making Changes to rectify Phonegap Initialization Problem