rearrange code
make digit->word a function to work with ChlorineJs