Is my replaceWith code wrong??

Is my replaceWith code wrong??

I have this code but jsfiddle gives no result, why??

$(function () {
$('<img src="https://facebook.com/favicon.ico" />').replaceWith('<i class="icon-facebook"></i>&nbsp;');
    });

http://jsfiddle.net/U6hpz/1/

Thank you, Tom