messageHandler on dunn.js