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