Added JSUtils.scala, utils for interaction with Scala.js