transport plain text to javascript string