Update index.js

Don't fetch sessionID from a cookie is it's already set