d3.timer function, change colors