made final changes to the server.js so that it now finally works on local host 3000