add main.js the main program