Node.js code

Server side implementation