made main.js async