restructured project to separate client from node server code