Add Kotlin-JS to existing Kotlin Spring Boot Application

Hello there, Id like to ask if its possible to add Kotlin-JS to an existing app that uses Kotlin with Spring Boot? I have an application that is built with Spring Boot, using server side rendering with freemarker templates in traditional way. I’d like to add Kotlin-JS to the front end, so I can write Kotlin code instead of Javascript code, is this doable? If so, how do I accomplish this? The app was created with IntelliJ using the Kotlin JVM platform with Spring Boot.