title: "A is not defined" inside of <aui:script> block
body: <p>I'm trying to extend some functionality of an existing Liferay portlet.  As part of this, I would like to use Alloy UI to modify the value of a field in the portlet.  There's a pre-existing <code>&lt;aui:script&gt;</code> block where I would like to define my custom function.  I went ahead and tried using <code>A.one('element')</code>, but I am receiving the error "A is not defined."  <code>A.one()</code> is used elsewhere in the same .jsp file, though not in an <code>&lt;aui:script&gt;</code> block, and it functions as expected.  </p>
  
  <p>I have tried Googling this problem to no avail.  One solution that I tried was to include the "use" statement in the element block, but this made all of the functions in that block undefined when called from the jsp.</p>
  
  <p>What I mean by the "use" statement is this:</p>
  
  <pre><code>&lt;aui:script use="aui-node,aui-base"&gt;
      // ... script
  &lt;/aui:script&gt;
  </code></pre>
  
  <p>Here's a rough outline of what I'm trying to do:</p>
  
  <pre><code>&lt;aui:script&gt;
      function save(){
          // This is where I'm getting the 'A is not defined' error.
          var titleNode = A.one('input[name=title]');
  
          if (titleNode) {
              // do stuff with titleNode
              var titleVal = titleNode.val();
              var titleSubstr = titleVal.substring(0, titleSubstr.lastIndexOf('/'));
              titleNode.val(titleSubstr);
          }
  
          // other save-related code here
      }
  
      function otherFunction() {
          // some other functionality
      }
  &lt;/aui:script&gt;
  </code></pre>