Changes in pattern.js file