Oh my! What's this I'm working on?

Notes:
It's not complete yet. It's only able to determine whether or not a pack is outdated or not. The "Update texture packs" button does nothing.
How it works:
You add a version.txt file to your texture pack zip, first line is the current version, second line is a direct URL to a text file with the new version number in it. It then compares the two.
(I have yet to add this:) In the text file you've uploaded and linked in your version.txt, the second line has a URL to the new pack's Zip file.
I am going to change it from "Update texture packs" to "Update selected texture pack", though. When you hit "Update selected texture pack" it will download the Zip file from the URL provided in the text file uploaded online.
I'm kind of stuck though, as I'm sort of learning along the way of this. The way Minecraft works is confusing. :o