use correct buffer offset when reading a file with node.js