Changed .next() calls to .siblings('ul') to avoid accidentally selecting span tags. Minified plugin file