what\'s wrong with that?
$(\'body\').append(\"Upload successful!\"); $(\'.message\').delay(2000).remove(); <
I think that correct way of doing that is to use jQuery queue method:
$("Upload successful!") .appendTo('body') .delay(2000) .queue(function() { $(this).remove(); });