added twinkling and optimized d3 performance