Changed window width to window.outerWidth in samesize snippet