Update the javascript diff driver's function pattern.