Fix for firefox detection.
Simplification of demo6.
Fix AbstractPrototype.write().
Fix for demo1 on Firefox.