diari main.js e connection.js