Added findPattern.js