AMD loader, like requirejs, but with promises and for modern browsers