Update ucwords.js

To take into account dashes, i.e. : `jean-pierre` should become `Jean-Pierre` (and not `Jean-pierre` as before).