Added a preloader, cleaned up code, and minified.