A Counter in JS and HTML