Reverted back to old filtering and added exception for loader.js in .gitignore.