initial version of main.js