Cleaned up directives.js and filters.js