Update charsRemaining.js

added to use multiple times in same view, choose whether to define maxChars in html attribute or in controller