A nice little serialization scheme for ES6