Update main.js

Support multi language!