edit mode new js