adds js for header scroll opacity