use window.document instead document

when pass other windowref to the seajs factory, unexpected document ref