Greeting,
I have understood your Code to Simulate Clicking the Download button on Google site's page task and can do it with your 100% satisfaction. Please ping me for more discussion.
I have more than 5 years of experience in Google Chrome, HTML5, jQuery / Prototype, PHP, SQL