window.onload = function() { graph.hook(); materials.load(); gui.construct(); gui.loop(); };