title: Uncaught SyntaxError: Unexpected end of input on line one
body: <p>This error is usually associated with messy close parens, but I'm getting the error on <strong>line 1</strong> of the file!</p>
  
  <p>Here's the javascript<code>(filename: calculate.js)</code></p>
  
  <pre><code>var colors = new Array();
  colors["SILVER"]    = -2;
  ...
  </code></pre>
  
  <p>There's plenty more code later in the file, but I don't think it could be causing this error.</p>
  
  <p>And in case this is caused by the head declarations, here's the document head.</p>
  
  <pre><code>&lt;meta id="author" content="Dawson Diaz, Evan Shimoniak"&gt;
  &lt;meta id="description" content="Resistor Color Code Calculator"&gt;
  &lt;meta id="keywords" content="Resistor, Calculator, Color Code, Electronics"&gt;
  &lt;!--Set favicon--&gt;
  &lt;link href="favicon.ico" rel="icon" type="image/x-icon" /&gt;
  &lt;!--Include jQuery--&gt;
  &lt;script src="http://code.jquery.com/jquery-1.11.0.min.js"&gt;&lt;/script&gt;
  &lt;!-- Latest Bootstrap minified CSS --&gt;
  &lt;link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"&gt;
  &lt;!-- Custom CSS --&gt;
  &lt;link rel="stylesheet" href="style.css"&gt;
  &lt;!--Latest compiled and minified Bootsrap JavaScript--&gt;
  &lt;script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;!--Calculator--&gt;
  &lt;script src="calculate.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;!--Input processing--&gt;
  &lt;script src="ui.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Any advice is appreciated.</p>
  
  <p><strong>EDIT:</strong> The full code for calculate.js is <a href="https://github.com/dawsondiaz/R3C/blob/24ddf57c586c7fa74b6c18cbe35f1b3f5da0b02d/calculate.js" rel="nofollow">here</a></p>