buffer extension for nodejs