Changed window.page to window.lightpage