Update index.js

Content-Type set sooner