Support case insensitive document title search.

The current master only supports case sensitive filename search. This PR fixes that by comparing after toLowerCase().

toLowerCase() will propably not solve this for the complete UTF-8 space, but it's much better than current case sensitive matching.