fix missing jquery replace