Getting JavaScript error when creating a filter for a visual report