js file structure updated