Added filter function for Content.js