CRM-13611 reports UI

cj is deprecated. Use CRM.$ and pass $ into the function