Modified JS to prevent collapsible function running if inside language markup class