Handy work with buffers in NodeJS