Refactored global into an object, and put allFilters inside it
Separated global and userData into two files