opts/options dict is the generic approach for keyword arguments, since javascript doesn't support kwargs.