Add buffer class to node.js interface

Why is `obj` an optional param here?