pass d3 explicitly to mpld3 creation function