Fixed superfluous spaces caused by .text() on html in search function
Added search function