set up index.js file to set up server connection