hi guys,
any idea on how to index html files?

Code:
var s = new Array();
s[0] = "JSE^form.html^Enter JSE in the example above ...^open source, free, client side";
s[1] = "JSE DOCUMENTATION^doc.txt^JSE is a client-side local site search engine. Written entirely in JavaScript ..^ faq, docs, instructions";
s[2] = Testing^test.html^this is just a test file, testing 123^test, world";
this is a smple of the indexing in my js. but im thinking, if anyone knows how do the indexing without hardcoding into the array. the purpose for me to index is because i want to use it for search engine, easier searching. Help will be very much appreciated. Please help