Maybe also move the replacement in the classes to .init javascript e.g. mylang-plot --> mylang.plot So gsub is not used on uiLangUpdate