had cubes init with shader error, fixed it by moving window.onload