Fixed typo, recactoring equalHeight and $(window).resize