Add chargen.js that generates characters for discard.js

Please, merge this pull request, that adds a script that I
forgot to commit and push in my previous request.