Adapting to CSS or JS files