JS prototype for rich-text editing screenwriting app