Change window to $window.