A simple text editor programmed using javascript