js for search white space