Fixed some with Download
Fixed download buttons and som bugs with javascript