Added a $.modal.isActive function to detect if a modal is currently open