Updated to latest version of JSmol.
Partial fix for not writing an orientation script in the middle of an executing script.
Removal of model and session variables.