Fixing bug throwing error "Uncaught ReferenceError: expandingEvent is not defined" when collapsing .box .