Chrome extension manipulating the selection/range in the DOM