У вашего броузера проблема в совместимости с HTML5
Traffic light simulation using two D-type flip-flops, an AND gate and a clock, provided to one of flip-flops. Timing of the lights can be maintained by changing the clock frequency. Higher the clock frequency, faster will the lights blink and vice-versa. This is one simple application of D-type flip-flops.