Fixed bug in stopword filter.

Stopwords needed to be checked from an array, not a string.
Fixed incomplete page loading problem.

Duplicate filenames in the session variable cause the page to stop
loading in the middle of a loop. This affected JQuery functions and
content output.