Make the character-limited textarea more intuitive

This solves the problem raised in issue #5. Namely, it:

* Prevents input from exceeding the textarea limit when holding down a key
* Prevents pasting text that would exceed the textarea limit
* Updates the progress bar even when holding down a key

The solution is cross-browser, though very old browsers might not work with it.

Review welcome.