Update buffering.js