main.html: display the remaining characters on the entry box