add include js and make header and footer shared