Pull out partial for search javascript