Does the CMS include a script manager?
Every page can define a script and/or include a number of script modules.
Each script module can have many versions of the JavaScript.
Each script version can specify what is the maximum and/or minimum browser version compatible with this script. The page can specify the a maximum version number for inclusion or just the script module. The script manager will include the highest compatible script version.