Print JS functions in ajax.php as well