transformation from plain JS to rather object oriented coffee-script

you need to run build.sh (or the coffee command inside) to compile
coffee-script to JS before viewing the page in the browser