add js file structure