main.js refresh