add main.js feature
merge featureMain into develop