Compositional vector graphics in Scala.JS