wait for deviceready before requiring code