window.global = <any>window;
window.global.Buffer = window.global.Buffer || require('buffer').Buffer;