code: public static JsArrayInteger toJsArray(byte[] data) {
      JsArrayInteger jsan = (JsArrayInteger) JsArrayInteger.createArray();
      int len = data.length;
      for (int i = len - 1; i >= 0; i--) {
        jsan.set(i, data[i]);
      }
      return jsan;
    }
docs: TODO(jgw): Get rid of these conversions in web mode.