converted leaders.js to coffeescript