wrong variable name on event handler

oddly this still worked in webkit