moved code to client folder. Added nodejs code to server