Scala.jsFiddle gist