Fixed invalid initialization with Buffer in browser version