update search.html with correct javascript order.