Threadlocal Set String Javascript Substring