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.
Merge branch 'master' into reorganized-reference-script

Conflicts:
	addon/lib/document.js