wait applicationready event then KM.init