Add a javascript loading screen for slow operations