Tweaks to css, moved JS
Refactored search in glossary controller to use SQL