Simplify selectionStart check

Simplify selectionStart check by using typeof. Check for (standards compliant) selectionStart before (non-standards) document.selection.
Merge pull request #4 from andyroid83/patch-1

Simplify selectionStart check. Thanks!