Fix searching on API docs

When I tried to search, it was throwing this error message `Uncaught TypeError: Cannot read property 'toLowerCase' of undefined`