replace some jquery by vanilla js