Updated promise chain
removed semi colon from factories js line 25