Fixing JS and CSS to show the main template