web.js improved buffer definition and initialize