Declerative visualization in Scala.js