This is a simple JavaScript time counting class.