you could use `$('#flash').html('<div ...');` here and not need the empty.