Using the MathJax javascript library has presented a challenge for me. Whenever I make changes to the MathJax configuration, I encounter issues because it is written in javascript but its type is labeled as "text/x-mathjax-config". This causes Intellij Idea to not recognize it as valid code.
Is there a way to add additional types to Intellij Idea's configuration in order to provide support for javascript?