simple javascript wordprocessor