Drawing lines and polygons with WebGL