switched to using jquery promise object for async fetch