1.First login to your google account and go to Google Code Hosting.
You can see screen look like this.
2.Click on "Create a new project".Next screen will look like this:
3.Fill above form with your information and click on "Create project".Next screen will look like this:
4.Click on "Downloads" tab.Now click on "New download" tab.
7.Now your java script file will upload to google.After that you can see the screen like this:
8.If you want to get direct link of your java script file,click on file name and select "Copy link address".
9.Now you can use it as external java script file.Look at the example below: