Move javascript code to a separate file (long due).
Support for render-to-texture (3D view only) in order to draw
a lower resolution image while navigating, for speed purposes.