phonegap ready listener