Scala.js example