first tentative for optimizing load js files with query selector, managi...

...ng auto load js function