You might want to add some comments about how this is supposed to work -- the coffeescript looks good, but is a bit difficult to read (especially for people unfamiliar with coffeescript)