[Krystal/Teddy] updated javascript to get username from response