Scala.js with pickling and ajax