Threadlocal Set String Javascript Substring From Right