Make buffer.js compile

Signed-off-by: katlogic <kat@lua.cz>