remove document.origin, prepare LC