code: function typed_to_plain(tarr) {
          var retval = new Array(tarr.length)
          for (var i = 0; i < tarr.length; i++) {
              retval[i] = tarr[i]
          }
          return retval
      }
docs: conversion from typed byte array to plain javascript array