Removed console.log and added initFilters function