Move port number out to main.js