Caché terminal emulation in web application