Modified demo for compatibility with Firefox.