In general, JS and CSS resources should be in separate files. This improves clarity and security (for example, when using CSP).