Modified server.js to work with https