add require document and document ecma5