Update index.js to fix login problems

A different user agent is expected these days apparently