canceling editing after link edits and add .js