Corrected class declaration on window