Seeking to create a WebGL-based 3-D viewer, I require access to an imported model in STL (.stl) format. My goal is to convert the STL file to .js for compatibility with web browsers. How can I accomplish this conversion without compromising the integrity and detail of the original STL file?