move javascript load to footer using functions.php instead of loading them on header.php