Implementing x2js library and metadata.set.