Added preloader script

I added a preloader javascript file. I haven't referenced it in the html
yet because we might switch to a fade on at some point.