add global plugin to access to global variables (ex:document)