Update functions.php

Added loadfooterscripts function