Update README.md

Javascript example taken from the coffeescript example using http://js2coffee.org/