Retain cursor position after value change.

Resolves #26.
Needs Internet Explorer checks, unfortunately I can't get access to one.