Wrap ajax call inside promise
Merge pull request #75 from alexspeller/wrap-ajax-call-inside-promise

Wrap ajax call inside promise