Add word count js

JavaScript to provide a running count of the number of words you are still allowed for limited textareas.

Includes tests for all identified use cases.