Rename the client.js script to slave.js, and changed places where it's refered to as client into slave.