Added isFinished() function in timer.js that returns true if the maxTime has been reached by timerId and false otherwise