Replace setSelectionRange() call with universal rcmail.set_caret_pos()
MOve more IE<9 code to legacy_browser
Small code improvements