It's legal to remove Google CSE javascript code?
The code snippet that Google gives to use CSE (Custom Search Engine), is something like this:

    <div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000">
      <div class="cse-branding-form">
        <script type="text/javascript" src="http://www.google.com/jsapi"></script>
        <script type="text/javascript">
          google.load('search', '1');
          google.setOnLoadCallback(function() {
            google.search.CustomSearchControl.attachAutoCompletion(
              'partner-pub-000000000000000:aaaaaa-bbbbb',
              document.getElementById('q'),
              'cse-search-box');
          });
        </script>
        <form action="YOUR PAGE" id="cse-search-box">
          <div>
            <input type="hidden" name="cx" value="partner-pub-00000000000000:aaaaa-bbbbb" />
            <input type="hidden" name="cof" value="FORID:10" />
            <input type="hidden" name="ie" value="ISO-8859-1" />
            <input type="text" name="q" id="q" autocomplete="off" size="50" />
            <input type="submit" name="sa" value="Buscar" />
          </div>
        </form>
      </div>

Which implies to load a JS file from Google site. This makes my page very slow sometimes and I was wondering if it's legal to remove the Javascript part, leaving only the form. It works, but I'm worried about the legal considerations

It's legal to remove Google CSE javascript code?
===

The code snippet that Google gives to use CSE (Custom Search Engine), is something like this:

    <div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000">
      <div class="cse-branding-form">
        <script type="text/javascript" src="http://www.google.com/jsapi"></script>
        <script type="text/javascript">
          google.load('search', '1');
          google.setOnLoadCallback(function() {
            google.search.CustomSearchControl.attachAutoCompletion(
              'partner-pub-000000000000000:aaaaaa-bbbbb',
              document.getElementById('q'),
              'cse-search-box');
          });
        </script>
        <form action="YOUR PAGE" id="cse-search-box">
          <div>
            <input type="hidden" name="cx" value="partner-pub-00000000000000:aaaaa-bbbbb" />
            <input type="hidden" name="cof" value="FORID:10" />
            <input type="hidden" name="ie" value="ISO-8859-1" />
            <input type="text" name="q" id="q" autocomplete="off" size="50" />
            <input type="submit" name="sa" value="Buscar" />
          </div>
        </form>
      </div>

Which implies to load a JS file from Google site. This makes my page very slow sometimes and I was wondering if it's legal to remove the Javascript part, leaving only the form. It works, but I'm worried about the legal considerations
