First stab at putting plot controls inside appropriate plot <g> elements. Note to self: D3 and jQuery don't play nice with each other.