Comparing JavaScript with Coffeescript with an example