add js for jump to the editing state