No, you MUST NOT remove js from the “Frontend file types allowed in selected directories”! This would BREAK your site as it is a completely unrelated option.
In fact, if you were to do that you'd prevent any and all JavaScript files — even Joomla's and Admin Tools' — from executing at all. This would make it impossible to even use your site's administrator.
The security option I had you disable is not a vital one. To the contrary, it's what I call “paranoid level of security”. The attack it's meant to prevent is if somehow someone uploaded a malicious static file which can have executable JavaScript code i.e. an HTML, SVG or JS file. If you viewed (HTML, SVG) or executed (JS) this file it would run its malicious JavaScript code in the context of your web browsing session. This would allow the attacker to subvert your site, for example by stealing your login cookie or adding invisible fields on top of login forms to steal the username and password of unsuspecting users. What our "Disable client-side risky behavior in frontend static content" feature does is send an HTTP header alongside with these files which tell the browser “if this file tries to execute any JavaScript (HTML and SVG only) or create executable <script> tags in the document KILL IT AND DON'T RUN THAT CODE”. It's a very efficient workaround to an extremely unlikely issue.
Why do I say extremely unlikely issue? Well, Joomla will by default not allow untrusted users to upload HTML, SVG or JavaScript files at all! You'd need either an insecure extension which does not respect Joomla's upload restrictions OR a malicious Administrator or Super User to upload those files. Therefore, the protection offered by this feature is truly for the paranoid among us.
Your site is not, practically and realistically speaking, more vulnerable disabling that option. If that was the case I would have warned you and told you to use a different extension. I am not known for mincing my words or irresponsibly telling people to disable security features they definitely need. Quite the contrary.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!