Added support for Scala.js