better subsitution with jQuery replaceWith