Fix caret position on Android

Fixes bug introduced in 23e6f693 - function created by $.proxy was never executed.