Rabin-karp-js is a project mainly written in JavaScript, it's free.
Javascript implementation of the Rabin-Karp string search algorithm.