move send() binding to client.js