Binding event handlers in a loop is an anti-pattern greatly promoted by jQuery during several years. You should use event delegation.
Edit: typos
document.body.addEventListener("click", function(e) {
if (e.target.className == "clicky") {
doSomething();
}
}, false);