put figure into html using mpld3