added functions.php and linked javascript