Changes to wordcounter.js