JavaScript error thrown when collapsing a "collapsible" SECTION