src: browser.js: save more bytes by inlining bufferSlice and the remaining getOutput* functions