A multi purpose timer written on javascript