The code is easier to read on GitHub (https://github.com/cmlaidlaw/waaah) rather than view-source, if you're curious.