refactoring: ES5's map to jQuery map, link dialog: hyperlink sync when range collapsed