replace coffeescript examples with javascript