cleaned up functions.php, added scripts to footer for faster loading, conditional script loading