First draft at serializing at deserializing event maps

While serializing works, deserializing is buggy
Updated documentation
Updated dist JS