fixing server.js code and changing some links in index.html