Scala.js is a port from Scala that compiles to JavaScript, which at the end will be running outside the JVM. It has benefits as strong typing, code optimization at compile time, full interoperability with JavaScript libraries.
Scala.js
Scala
JavaScript
JVM