Update widget.js

By default, when i make a choice - it clears the search input, is should be controlled in some way
Update widget.js

variable rename and var type fix
Merge pull request #171 from vosi/patch-2

Added option clearInputOnSelectChoice.