code refactoring of css and js files