Any idea what is wrong with this javascript function?
<p>I have the code below working fine as an anonymous function. I decided to make it into a named function so I copied the code and added the name. Before copying it the code worked fine. Then when I created the named function my console gave an error of unexpected end of input. Any idea what is wrong with it? I see nothing wrong.</p>

<pre><code>function grabTestList() {//Displays the test list   

   var listOfTests = "";
   var subjects = [];
   var tests= [];
   var titles = [];

   var keysplit;
   var testSubj;
   var key, value;

   for (var i = 0; i &lt; localStorage.length; i++) {
       key = localStorage.key(i);
       value = localStorage.getItem(key);

       keysplit = key.split(".");

       tests.push(value);
       titles.push(keysplit[0]);
       subjects.push(keysplit[keysplit.length-1]);

}
</code></pre>
