Notes:
Open web console
Run index.js script with nodejs
Access "https://127.0.0.1:8001" in another tab. The browser should alert you about security, since the certificate is self-signed
Accept security exception and close that tab
Reload this page