Update patterns.js