Use .forEach instead of for loop when creating search result elements