remove editor and adjust javascript