Fixed download button

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

@fuzetzu
fix mime type

@braiam
I was just looking it over and I made a mistake in my original posting
(in the forums), the proper mime type is text/plain, text by itself
works because we want to download it anyway but it is an invalid mime
type.