Caching and js cleanup

Main background images are preCached.