Fixed "ENV is undefined" issue in addon/lib/document
Merge pull request #32 from coderly/fix-env-is-undefined-in-document

Fixed "ENV is undefined" issue in addon/lib/document. Fixes #31.