JavaScript Spirograph WebGL rendering