Renaming JSON file
Fix promise code