jQuery extension to set the focus cursor of a text input or contenteditable element at the end of its content