d3 works with ipad, raphael fix