handle message passed back by Boss and send them to javascript