code to help make a reduced test case for WebGL by capturing the commands and generating a stand alone program