Update index.js

does not work with new mongodb driver