Improvements for Android 2.x handling of events and DOM freeze