Much of the Firefox UI is and has been written in JS for a long, long time. What's happening now is that Mozilla is moving some components away from the XUL renderer -- an old, crusty piece of tech that is only still maintained because Firefox depends on it -- to the HTML renderer. Having more things on one stack means development resources can be spent more effectively.