Messages were not being sent properly because of JS bug introduced by d814ee6 (related to #85)