Pulled d3 related stuff for the patent map into a single class. Plot rescales OK after a Clear.