splashscreen javascript corrected