Client scripts or UI Policies throws error ReferenceError: HelloWorld is not defined when tring to call a Script IncludeIssue <!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Symptoms Cannot instantiate a Script Include object from a client script. Error in console displays something like: ReferenceError: HelloWorld is not defined Where HelloWorld is the name of the Script Include On the Client Script or UI Policy, we may have something like var obj = new HelloWorld(); Release All Cause The problem is the way client code is being prepared to call the Script Include var obj = new HelloWorld() is not the correct way to instantiate a Script Include object Resolution The correct way to call a Script Include from a Client Script, or other client side code like UI Policies, is to use a GlideAjax object like so: var ga = new GlideAjax("HelloWorld") Additional Information https://docs.servicenow.com/csh?topicname=c_GlideAjaxAPI.html&version=latest