js and footer stuff