dart2js optimizations for TextInput