Update Pattern.js