renamed sc client id var to window.