changed classList to className .. for IE compatibility