rewrote activelinks as coffeescript