globalVariables: remove the iframe when the list of variables is generated

Fixes #297