moved sample code from TestWebGL to test-webgl
factored out geometry updates