wait while jquery is loading