Making demo.js work with ace space editor

Absolute bare essentials to get firepad demo running on ace instead of codemirror.