modular filtered files javascript structure