restructure js and css files