A lightweight JSON model for Scala and Scala.js