Corrected the scope of the fader object so that it is not attached to window.