Added script in header and footer