That game was originally made in Flash, most likely, but it has been ported to HTML5.
If you want to play offline games like that, sometimes you must download a bunch of .html, .css, .js, media files and so on.
Tools like
You must be registered to see the links
may be useful. There are some tutorials on the Internet. Download the game starting from
You must be registered to see the links
.