Both pages start with <source>, which is a deprecated alias for <syntaxhighlight>. Replacing it with e.g. <nowiki> will remove the pages from the category.
Wait, you ask. We are talking about .js pages, don't we? There is not wikitext. Still, for historical reasons, even .js pages are parsed by the wikitext parser to populate database tables like the one needed for Special:WhatLinksHere.
This behavior is the reason why .js pages often start with a comment that contains <syntaxhighlight> or preferably <nowiki>. This effectively tells the wikitext parser "there is nothing to see here, please go away". Still it will parse at least this initial tag and report it when it's an outdated <source>.
I hope this helps.
Kind regards Thiemo