AFAIK, the "Channels" on the Apple TV gen 2 and 3 are already JavaScript and XML-based (a while ago, people discovered that they could spoof the XML and JS on the Trailers channel to play arbitrary videos). So it's somewhat natural that the new Apple TV continues with Javascript.