replaced global map var w/ local var
added an example of a Promises/A async test