use rangy for selection handling
generated js