code: function int64_to_bytes(num) {
          var retval = []
          for (var i = 0; i < 8; i++) {
              retval.push(num & 0xFF)
              num = num >>> 8
          }
          return retval
      }
docs: convert a 64 bit unsigned number to array of bytes. Little endian