Update window-common.js