Fixed phonegap not initializing on device