The CamanJS example, from the website, in JavaScript (instead of CoffeeScript).