updated for coffeescript 1.7