Is there a better way to work with promises and callback? | Dark Hacker News