Fix getSelection under IE9+, closes #201