Fix line/triangle/quad rendering in JavaScript.
Fix line/triangle/quad rendering in JavaScript.

blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon