Initial View:

setStart(pdbfilename, script) (in dvrblite.js) defines the PDB file and initial script for jmolApplet0.

getStart() (in dvrblite.js) returns the initial script for jmolApplet0.

putJmolApplet() (in util.js) assigns getStart() to initSpt, and does
jmolApplet( ["100%","94%"], initSpt); (Jmol.js)
which puts the script into the <object name="jmolApplet0" ...
in <param name="script" value="...">

------------------------
Sending View Scripts:

writeControls() (in util.js) calls makeButton(i) (in dvrblite.js) for each button.

Each button is in its own division of class "button".

The script, in buttons[buttonNumber][iScript], is incorporated into a larger script constructed based in part on buttons[buttonNumber][iScriptMode].

Every script is prefixed with "exit;" so it will kill any running script before starting.

The final script is incorporated into a button with
jmolButton( spt, buttons[num][iButtonLabel] )

Clicking a View # button executes _jmolClick(2,"1") (Jmol.js)
where the first parameter is the index to the stored script, and the second is the jmolApplet#.
It simply calls jmolScript().