Removed console.log from Dude1.js.
Added connection.readyState check to connection.send statements.
Connection state changes.