JavaScript that count the characters remaining in the textbox