Move document.ready out of collapsible