adding node.js Buffer support