Update thousandwords.js

Fix typeof NaN is a number...