Based on the original work by Riham: Thingiverse: STL to OpenSCAD converter.
This update can also be found on JSFiddle.