wrap with the js-buffer