Update selection.js

修复IE下textarea中因为\r\n换行导致的cursor()光标位置错误bug.
Merge pull request #3 from vapour/patch-2

Update selection.js