index.js cleanup. set variable for default connection