fix d3.js loading for older chrome versions