title: Pig Latin Translator - JavaScript
body: <p>So for my cit class I have to write a pig Latin converter program and I'm really confused on how to use arrays and strings together. 
  The rules for the conversion are simple, you just move the first letter of the word to the back and then add ay. ex: hell in English would be ellhay in pig Latin
  I have this so far:</p>
  
  <pre><code>&lt;form name="form"&gt;
  &lt;p&gt;English word/sentence:&lt;/p&gt; &lt;input type="text" id="english" required="required" size="80" /&gt; &lt;br /&gt;
  &lt;input type="button" value="Translate!" onClick="translation()" /&gt;
  &lt;p&gt;Pig Latin translation:&lt;/p&gt; &lt;textarea name="piglat" rows="10" cols="60"&gt;&lt;/textarea&gt;
  &lt;/form&gt;
  
  &lt;script type="text/javascript"&gt;
  &lt;!--
  fucntion translation() { 
  var delimiter = " ";
      input = document.form.english.value;
      tokens = input.split(delimiter);
      output = [];
      len = tokens.length;
      i;
  
  for (i = 1; i&lt;len; i++){
      output.push(input[i]);
  }
  output.push(tokens[0]);
  output = output.join(delimiter);
  }
  //--&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>I'd really appreciate any help I can get!</p>