adding deviceReady in a different way ;D