Pickling for Scala.js