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

Pull request for #59