Create patterns.js