Adding device ready handler for ios phonegap