implement loading screen using getScript();