diff --git a/examples/index.html b/examples/index.html
index 2c024f5..7265319 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -19,11 +19,20 @@
url,
base64;
+ function uint8ToString(buf) {
+ var i, length, out = '';
+ for (i = 0, length = buf.length; i < length; i += 1) {
+ out += String.fromCharCode(buf[i]);
+ }
+
+ return out;
+ }
+
out = tape.append('output.txt', 'This is test1!');
out = tape.append('dir/out.txt', 'This is test2! I changed up the directory');
out = tape.append('arr.txt', utils.stringToUint8('This is a Uint8Array!'));
- base64 = utils.uint8ToBase64(out);
+ base64 = btoa(uint8ToString(out));
url = "data:application/tar;base64," + base64;
window.open(url);