I'm trying to figure out how to make an multiple uploadscript where when starting to upload a box is created with a message saying "Uploading". When the file is done uploading the image should show, in the same box, and the message should disappear...

As it is now I'm creating the box once for the status message and then again when image is done uploading leaving 2 boxes... Where do I go wrong?
Code JavaScript:
onSubmit: function(file, ext){
    $('<li></li>').appendTo('#files').html('This is uploading...');
},
onComplete: function(file, response){
    if(response==="success"){
        $('<li></li>').appendTo('#files').html('<img src="./uploads/'+file+'" alt="" /><br />'+file).addClass('success');
    } else{
        $('<li></li>').appendTo('#files').text(file).addClass('error');
    }
}

Hey... Thanks in advance ;-)