Node js server and client code