JS and HTML changes to fix character count problem; fixes #2 --KW