trying to fix deviceReady problem with phonegap build