StringBuilder in js