new js file structure