Cleanup requestHandler.js a little - still issue with getPhotos