Replaces the server-side PHP search controller files with browser-side
JavaScript equivalents.