Add MimeType application/javascript

Hello everyone,

I want to save a p5js Script to ipfs with node.js (the whole script is stored in a string-variable).

What is the smartest way to set the Mimetype to application/javascript so the Browser is able to render the script.

Thanks in advance
T