docs: function checksum(text)
    {
      var a = 1, b = 0;
      for (var index = 0; index < text.length; ++index) {
        a = (a + text.charCodeAt(index)) % 65521;
        b = (b + a) % 65521;
      }
      return (b << 16) | a;
    }