main js to app