init main js file