I dont' understand why you have moved this inside this conditional. That class needs to be applied wether the browser is modern or not.