restore selection after blur using rangy