s/window/global/g
modify define static.