minor update, reorder `main.js`