using jquery ready before phonegap ready