Update index.js

Remove unused lab variables.
Adding MongoDB TTL index