refactored d3 left click
completed mouseover js code