Adds conditional loading of JS and CSS files.