Create a closure for click handlers in a loop
Added qunit (didn't know where the bug was, so started testing whatever seemed unclear to me :)
Merge pull request #1 from pawcik/nasty_click_handlers_in_a_loop

Nasty click handlers in a loop