Made changes to buffer between nodejs and coffeescript