code: function QR8bitByte(data) {
      this.mode = QRMode.MODE_8BIT_BYTE;
      this.data = data;
      this.parsedData = [];
      for (var i = 0, l = this.data.length; i < l; i++) {
          var byteArray = [];
          var code = this.data.charCodeAt(i);
          if (code > 0x10000) {
              byteArray[0] = 0xF0 | ((code & 0x1C0000) >>> 18);
              byteArray[1] = 0x80 | ((code & 0x3F000) >>> 12);
              byteArray[2] = 0x80 | ((code & 0xFC0) >>> 6);
              byteArray[3] = 0x80 | (code & 0x3F)
          } else if (code > 0x800) {
              byteArray[0] = 0xE0 | ((code & 0xF000) >>> 12);
              byteArray[1] = 0x80 | ((code & 0xFC0) >>> 6);
              byteArray[2] = 0x80 | (code & 0x3F)
          } else if (code > 0x80) {
              byteArray[0] = 0xC0 | ((code & 0x7C0) >>> 6);
              byteArray[1] = 0x80 | (code & 0x3F)
          } else {
              byteArray[0] = code
          }
          this.parsedData.push(byteArray)
      }
      this.parsedData = Array.prototype.concat.apply([], this.parsedData);
      if (this.parsedData.length != this.data.length) {
          this.parsedData.unshift(191);
          this.parsedData.unshift(187);
          this.parsedData.unshift(239)
      }
  }
docs: QR CODE CORE LIBRARY DEFINITION START SHOULD NOT BE MODIFIED  QRCode for JavaScript  Copyright (c) 2009 Kazuhiko Arase  URL: http://www.d-project.com/  Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php  The word "QR Code" is registered trademark of DENSO WAVE INCORPORATED http://www.denso-wave.com/qrcode/faqpatent-e.html