jsHint
Call of Promises simplified
:scissors:
Merge pull request #2 from wbruno/master

Improve code reducing the nested level and added jsHint