add html5 downloads

change span by anchor and add html5 download attribute if you not provide option downloadPage