mapping of rdfstore.js to scala.js