Improved the Preloader.js