Changed html() to replace()