refactoring of unused js and css