title: Javascript SyntaxError: expected expression, got '}'
body: <p>I’ve looked around for a bit and I can't find much help elsewhere</p>
  
  <p>The code is much bigger but I’ll put the important bits in &amp; close to the error</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var debug = "0";
  
  /* IF Table Spagetti */
  if (debug !== "1") {
      console.log("Debug Mode enabled");
      var mapname = "datacore"; 
  
  } else if (mapname == "bounce") {
      $("#map").html("Bounce");
  
  } else if (mapname == "crossfire") {
      $("#map").html("Crossfire");
  
  } else if (mapname == "datacore") {
      $("#map").html("Datacore");
  
  } else if (mapname == "lambda_bunker") {
      $("#map").html("Lambda Bunker");
  } else
      $("#map").html(mapname);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a id="map"&gt;Map ID&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>If anyone has a solution I’ll be thankful</p>