Actually, you're the one who has no idea what JS is. I just resized a Chrome window with http://www.apple.co.uk/ loaded in it on my Windows desktop PC. As I changed the height of the window, the content above the Samsung apology was resized so that the apology would be hidden unless I scrolled down. It is most definitely not restricted to touch devices.
I wouldn't put it past Apple to make things look nice.