Cleaning up the code for the world chart WebGL scene