Code for this page:

<head>
  <title>Simple example</title>
  <script src="../../jmol/Jmol.js" type="text/javascript"></script> <!--  Use your own path here {#1} -->
</head>
<body>
  <form>
    <script type="text/javascript">
      jmolInitialize("../../jmol"); //    Use your own path here {#2}
      jmolApplet(200, "load caffeine.xyz");  /*   Use your own path and filename here {#3}, but... CAUTION! If you are running the page from disk, not from web server, molecules (path #3) MUST be in the same folder than JmolApplet.jar (path #2 above) or in a folder below it. This example, as shown, will NOT run from disk. It will run if set-up in this other way:
"load ../../jmol/models/caffeine.xyz"
*/
    </script>
  </form>
</body>