JavaScript Word Editor