run gradle build
create a index.html file in web folder (or anyware else) add the following 2 line
<script type="text/javascript" src="kotlin.js"></script> <script type="text/javascript" src="kotlinjs4_main.js"></script>open index.html in any browser and open console