To remove the version parameter, you will need an additional filter. This is how I use jQuery for Googles without a query string:
<?php
wp_deregister_script('jquery');
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, false);
wp_enqueue_script('jquery');
add_filter('script_loader_src', 'toscho_script_loader_filter');
function toscho_script_loader_filter($src)
{
if ( FALSE === strpos($src, 'http://ajax.googleapis.com/') )
{
return $src;
}
$new_src = explode('?', $src);
return $new_src[0];
}
?>
You can even use the last filter to add your own custom queries.
Normally, the query string should not affect your script. I delete it only to increase the likelihood that the user can use the cached version of this file.