Java Stringbuilder Delete Method In Js