Added the preloader code. It has two javascript files