There are no real walkways between terminals at JFK, and even if you could walk between the terminals, it would involve doing so alongside near-constant vehicular traffic and the resultant fumes and noise. It's better just to take the Airtrain down one stop and stroll around Terminal 4 as you await your Emirates flight. It's definitely big enough to allow some leg-stretching and some good multi-cultural people-watching.