[javascript] How can I process each letter of text using Javascript?