edit js bug