Fixed an issue with the cursor position in a textbox whose entire value is selected in IE6+ (#32)

Fixed an issue with replacing one or more selected characters (but not all) in any browsers
Fixed invalid closing tag in demo
Merge pull request #33 from Mathachew/dev

Addresses overriding text and cursor position issues