ensure callback is added to params before building URL