Java Stringbuilder Append Method In Javascript