Moved search to HTML and got a bit of it working