http://www.colby.edu/chemistry/PChem/scripts/JSME/jme_examples/jme_example1.html