Wikibase datamodel serialization implementation in JavaScript