A String Buffer for javascript on browser-end