local version of d3 for https compat