sendAction moved out of closure in text_field.js