init main js