Creating a wait dialog with jQuery