refactor to promises
no more require.js