A promise-based JavaScript asset loader.