added arraybuffer support for buffer.js