start of implementing of multiple api calls via javascript