wait applicationready event before KM.init