added back code in server.js(was accidentally removed in the previous commit)