Making IE10 happy and adding image caching

Client now preloads next page while reading and unloads the previous one
when moving forward. Only 2 images are kept in memory at any given time.