Merge ranking and ajax