Fixed an error where the scripts in foot.html wasn't closed