Added KMP search in JS.