Used ajax-promise from bower.