Updated to get port number from config.js