The easiest way of creating download link for image or html is setting download attribute, but this solution works in modern browsers only.
Sample code for Google Maps Platform JavaScript API author(s): Justin Poehnelt
Displays count down for 60 seconds using Jquery
jQuery 1.7.1, HTML, CSS, JavaScript