Update script regarding fancy-box changes and the window resize.