Include function in params of select2