Update main.js

Adding the function to call the filter table