Fixes the JS scripts in the footer.