Added filter code to app.js