Tried to use Kotlin to generate javascript code to work with angularjs