js-demo: firefox bugs fixed