How to download source file for jquery

How to download source file for jquery

Hi
   I am using jquery, jqueryUi and UIdatepicker with redmond css like below in Rails

<%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"%>
<%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" %>
<%= stylesheet_link_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/redmond/jquery-ui.css" %>

     And my code is working as expected except some css for datepicker is missing. My new requirement is, rather than linking to googleapi like this,  need to keep the source locally. I am a beginner So I would like to get a step by step advise to do that .Please help me

Thanks in advance
Tom