js class to params_class