title: How to use in javascript some data coming from lua files?
body: <p>I have some lua files that I need to read in JS.
  I would like to be able to import the variables (mostly tables) and go through them easily in JS, to add things in the DOM.</p>
  <p>Exemple of LUA file:</p>
  <pre><code>print(&quot;lua display text&quot;)
  
  Civs = { 
      CIVILIZATION_EGYPT = { -- lua comment 1
          Playable = true,
          SpawnYear = -3000,
          StartX = 75,
          StartY = 32,
          Table = { },
          Text = &quot;abc&quot;,
          TableTable = { {&quot;a&quot;}, {&quot;b&quot;}, {&quot;c&quot;}, {&quot;d&quot;}, {}, {}, {}},
      };
      CIVILIZATION_INDIA = { 
          Playable = true,
          SpawnYear = -3000,
          StartX = 98,
          StartY = 42,
          Table = { },
          Text = &quot;abc&quot;,
          TableTable = { {&quot;a&quot;}, {&quot;b&quot;}, {&quot;c&quot;}, {&quot;d&quot;}, {}, {}, {}},
      };
      CIVILIZATION_BABYLON = {
          Playable = true,
          SpawnYear = -3000,
          StartX = 84,
          StartY = 41,
          Table = { },
          Text = &quot;abc&quot;,
          TableTable = { {&quot;a&quot;}, {&quot;b&quot;}, {&quot;c&quot;}, {&quot;d&quot;}, {}, {}, {}},
       }
  }
  -- lua comment 2
  </code></pre>