added document to getElement