Manually Create PolyData in vtk.js

I have looked at how the polydata is created from the vtkConeSource javascript source code. I will try to use that approach and see if it works. It is quite a bit different than the way I am used to doing it in standard VTK.