I am a newbie for nodejs, Kindly excuse me. I have created a node js server app and the html was served using expressjs as follows
app.use(express.static( 'public/js'));
app.use(express.static( 'public/css'));
app.use(express.static( 'public/img'));
res.sendFile(path.join(__dirname + "/public" + "/login.html"));
In the client side The JS was included in head tag as
<script src="fingerprint.js" type="text/javascript"></script>
The inline JS in the body tag is
var bid = new Fingerprint();
document.getElementById('bid').value = bid.get();
console.log("----"+bid.get());
document.write('Hello');
Here if I run this HTML from the node server, the inline JS was not working, where as if I run in the file mode ie file:///login.html everything is working fine.

