updated genvenn code with index.js