Expose "kind" to JS