Add wp_footer() function to footer.php