Use ES6-Promise API properly
Merge pull request #5 from matthew-andrews/better-usage-of-es6-promise

Use ES6-Promise API properly