I have to calculate the time for a speech with javascript. I now have two functions, one to get the number of words in a text area, and one to display a number of seconds as