Factor out Buffer.coffee