Simple JavaScript timer factory with multiple types of timer objects.