tweaks to make the demo work in Firefox