Build tool for creating a drop-in js from a more complex html import dependencies tree