Added a small api that we can expand on in the future. /api/search.php?q=query works.
Fixed pagination buttons... now to fix the actual thing that gives you the pages
Yikes, made the same mistake in both places. The ternary operator was backwards, essentially making the page _always_ one.