made code more modular, css and javascript in seperate files