Fixed loading screen bugs

Still needs attention (loading_screen.html and iPad.js)