remove buffer shim and node specific code from browser build