Basic dynamic buffer for Javascript.