changed to res.sendFile(__dirname + '/index.html')