Promise chain worked. Found potential scope issue in factory.js. Refactored accordingly