Fixed missing receiveMessage function (Firefox)