Added a character counter with javascript