change d3 source to work on https and http