Rewrited without jQuery
Added id to patterns and changed name to title. Realized links to patterns.