Update index.js

Fixing CORS with IE8