Update index.js

remove writeheaders, it interferes with express somehow