remove unused js code and css rules