modify main.js, print infomation in the console