Fixes JS for search with "*"