// source: http://stackoverflow.com/a/11058858 function ab2str(buf) { return String.fromCharCode.apply(null, new Uint16Array(buf)); }