Fixed download button

It downloaded the complete html file, and triggered DOM Exeption 5

@fuzetzu