Javascript letter generator