Moved 'io.connect' to root of 'main.js'