Add RaphaelGraphs.createPopup to reuse code.