Modules in node.js not working
<p>I have 3 files, one simple .html: </p>

<pre><code> &lt;!DOCTYPE html&gt;
 &lt;html&gt;
 &lt;head&gt;
     &lt;title&gt;meh server&lt;/title&gt;
 &lt;/head&gt;

 &lt;body&gt;
     &lt;script src = "index.js"&gt;&lt;/script&gt;
 &lt;/body&gt;
 &lt;/html&gt;
</code></pre>

<p>The 'server.js':</p>

<pre><code>module.exports.proto = function() {
        alert("Working function");
    }
};
</code></pre>

<p>And the 'index.js':</p>

<pre><code> var server = require('./server');

 server.proto();
</code></pre>

<p>All in the same folder. I have node.js installed on my PC and typed on the windows cmd ''npm install nodejs'' on the folder of the 3 files. I can't receive the alert from server.js and I don't know why.</p>