formatting in main.js