added wp_footer() to footer.php