If it's a JS page, it should be valid JS

and not arbitrary content.

Recently, a bot on Commons was launched checking user scripts for issues and code editor may throw warnings when saving invalid JavaScripts. Thus it is a good idea to suggest valid JS.