Update index.js

The connection was never referenced. Each time a request came to the server a new connection was opened.