Fix curb.rb script for perf test + prepare for ajax when selecting a collector