fixing regex match in js driver