Update index.js

Added http server base setup