Added a fix for .html("") not working correctly.