Fixed bug where d3 was reusing elements that still had jQuery events attached