Index Objects in Node and the Browser