I have function below and would like to convert parameters to object where parameters same name as key and value

```
functionA(name, callback, param1, param2, ....paramN)
{
var params = {'param1': param1,.....};
   $.ajax(... data: params.....);
}

```