javascript editing