fixing a front-end bug in search results by moving a /div back into its for loop.