add the javascript to the  footer.php