JavaScript/HTML emulation of the vim editor