Update index.js

Added cookies