ASTInterpreter variable nodes: check for JS globals

This is fix for #654.