Sometimes you may want to load a script that is functionally correct but ServiceNow has an issue with it. One example of this would be if you are trying to load a 3rd party JavaScript library but there is some code in it that ServiceNow throws an error on that you know is correct. In these circumstances you can add the Script field to the List View. Then Paste in your script.
Load Client Script via List View