The number of spaces between words will be 1 less than the number of words, so I think this formula should be:
```
var wordSpacing = Math.round((conWidth - size) / (words - 1))
```
You should also verify that `(words > 1)` to avoid divide by zero.