Jmol functions are set up as text variables and defined in Jmol by being included in setUpSpt (scripts.js) + defineInitGapMeshFunction + defineGapMeshFunction + defineAltLoc1Function; Those functions are CALLED elsewhere.