javascript for textarea character countdown

this widget monitors keypresses for a given element, and updates
another element with the number of remaining chars.

This used to live in the 'feedback' app, but now extracting it to
here so it can be reused in 'frontend' as well.