Add JavaScript and CSS for MainTemplate.