Javascript article editor