Moving JavaScript and CSS from HTML file