Uncaught syntax error unexpected token
<p>I can't figure out what I'm doing wrong here:</p>

<p>(The error is on line 4, I'm sure there are plenty more):</p>

<pre><code>   var RPSPlayer = 
   {
   myHistory = new array();
   rivalRock = 0;
   rivalScissors = 0;
   rivalPaper = 0;
   itemChosen;
   victorySum;


  this.choose=function(item)
  {
  myHistory.push(item);
  };

  ...
  {more code here}
</code></pre>
