code: function coreScript(src) {
          var coreScriptLocations = ["WebResource.axd", "_layouts"];
          for (var i = 0; i < coreScriptLocations.length; i++) {
              if (src.indexOf(coreScriptLocations[i]) > -1) {
                  return true;
              }
          }
          return false;
      }
docs: End of function getScriptAttribute Check to see if the script reference is part of SharePoint core so that we can ignore it