professional chess clock using javascript and html 5