Tag dynamic strings in JavaScript