Make sure that .html(Function) gets the correct previous value.