Persistently store cookies. Serve gifs locally. Make index generated from template. Separate out javascript.