broadcast function for client.js fix #27