 <p>I suggest you use expressjs. Using <code>nodejs</code> to create web application is quite low-level. You have to install express via node <code>npm install express</code> and go from there.</p> <p><strong>Some code snipped to help</strong></p> <pre><code>var express = require('express'); var app = express(); app.use(express.bodyParser()); app.set('view engine', 'ejs'); app.register('.html', require('ejs')); app.get('/', function(req, res) { // Handle file reading in here and return object res.render('index.html', {obj: obj}); //where object is the obj is the object holding the arrays }); app.listen(8080, function() { console.log('Server running at http://127.0.0.1:8080/'); }); </code></pre> <p><strong>then in your index.html do .. inside script tags.</strong></p> <pre><code>&lt;script&gt; console.log(&lt;%= cordinates.obj %&gt;); &lt;/script&gt; </code></pre> <p>DISCLAIMER: I haven't tested this but it's just to help you on your way</p>