convert kyou to JS