Slightly hacky solution to copy kotlin.js