Expand/collapse all: updated code to jQuery style guide