Update Patterns.js