Make ector a global variable, so that one can debug more easily.
Fix Firefox: no more sending a post when submitting.