Javascript async script loader and dependency tracker