top level FunctionDeclaration should be considered a global
make sure window & document are considered as globals if they are not defined