fix xedit javascript