This is an html comment, not a javascript comment.
javascript ignores html comments, but html validators do not ignore them and do validate the page, even if there is invalid html in the javascript code. That's the reason for the html comment around javascript code in html pages
So code is executed.
That code comes from plugin.foundation.php.