Setting up main js file