Best practices for JavaScript and CSS