demo.html: Optimized and fixed handling of always open. Closes #11.