Use brefore instead of prepend when responding to datalist requests

Otherwise, the datalist was being inserted INSIDE of the input
Allow spaces in pattern for search input