changed example from coffeescript to javascript