Ruby Marshal serializer/deserializer for JS