Problem with aggregate model conditions using UI only Field

Last question on this: Can you set having through javascript and what would that look like? I would like to be able to create a table filter based on having.