Inverted index database made in node.js