Could be wrong, but I'm pretty sure Gnome just embeds a JavaScript runtime (and probably not a particularly good one) as an embedded scripting language. It's not using a web engine (which would handle styling, layout, accessibility, etc in addition to running JS).