Fixed remote host problem in main.js