you could merge these two calls into one via domClass.replace