fixed issue in which index.html would try to call a function in splash.html before splash.html had loaded