Repaired broken link to download-icon.png by renaming it. Added global v...

...ariable to example html file for when that file is not located in the same folder as the images folder -- otherwise, you get broken links to chart icons.

I also updated reference to ArcGIS js libraries, change doctype to HTML, i.e., HTML5, and made minor aesthetic code changes.