see http://chemapps.stolaf.edu/jmol/docs/examples-11/JmolPopup.htm