adjust strings for js