common main.js