Only register closeOnClick once; simplify w/element.toggleClass.