Update index.js

Was broken on a test server for some reason.