addClass function by native JS