Simulating motion of objects with D3.