Add "use strict"; and fix regressions
Fix disabled state for autocomplete input