Basic tcp server and client made using JS and Node