Experimented with jsmol callbacks.  The scriptcallback should allow the blocking of UI by showing glasspane.