Making a live digital clock using JS